package com.kingdee.eas.mx.exp;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.util.BOSUuid;



public abstract class AbstractExpenseFacadeControllerBean extends AbstractBizControllerBean implements ExpenseFacadeController
{
    protected AbstractExpenseFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("F1EE3A23");
    }

    public void passAudit(Context ctx, BOSUuid id) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("3b3b1351-328b-4d77-bc53-efa224439bf3"), new Object[]{ctx, id});
            invokeServiceBefore(svcCtx);
            _passAudit(ctx, id);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _passAudit(Context ctx, BOSUuid id) throws BOSException, EASBizException
    {    	
        return;
    }

    public void unPassAudit(Context ctx, BOSUuid id) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("03fee451-8e5f-4be6-8e78-2bb4197ddc05"), new Object[]{ctx, id});
            invokeServiceBefore(svcCtx);
            _unPassAudit(ctx, id);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _unPassAudit(Context ctx, BOSUuid id) throws BOSException, EASBizException
    {    	
        return;
    }

    public void sendNotice(Context ctx, String title, String sender, String body, String receiver) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("9a4a2416-a32b-441a-be62-cc1f56c5e109"), new Object[]{ctx, title, sender, body, receiver});
            invokeServiceBefore(svcCtx);
            _sendNotice(ctx, title, sender, body, receiver);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _sendNotice(Context ctx, String title, String sender, String body, String receiver) throws BOSException
    {    	
        return;
    }

}